﻿// Copyright (c) ZhangPeihang. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace LaserMark.Control.Service
{
    public static class GTError
    {
        public static string Message(short err) => err switch
        {
            1 => "指令执行错误",
            2 => "license 不支持",
            7 => "指令参数错误",
            8 => "指令执行错误",
            -1 or -2 or -3 or -4 or -5 => "主机和运动控制器通讯失败",
            -6 => "打开控制器失败",
            -7 => "运动控制器没有响应",
            -8 => "多线程资源忙",
            _ => "指令执行成功 ",
        };
    }
}
